toAscii
Convert HEX string to ASCII string.
Usage
TronWeb.toAscii(value);
Parameters
Parameter | Description | Data Type |
---|---|---|
value | A hexadecimal string | String |
Returns
String - The ASCII value corresponding to the given hexadecimal string.
Example
> const str = tronWeb.toAscii("0x74726f6e")
> 'tron'